package org.mlz.game.model

import org.itheima.kotlin.game.core.Painter
import org.mlz.game.Config

/**
 *<p>
 *
 *</p>
 * CreateBy  Malingzhao
 * @date  2020/9/18
 */
class Grass(override val x: Int,  override val y: Int ):View {

    override val width: Int =Config.block
    override val height: Int= Config.block
    override fun draw() {
        Painter.drawImage("img/grass.gif", x, y);
    }
//    //位置
//    var x: Int = 200
//    var y: Int = 200
//
//    //宽
//    var width: Int = Config.block
//    //高
//    var height: Int = Config.block
//
//    //显示行为
//    fun draw() {
//        Painter.drawImage("img/grass.gif", x, y);
//    }
}
